From 260ecb5fcbb690429f7ffe3f59d7191481229403 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 22 Jul 2014 07:38:01 -0700 Subject: [PATCH] Correct a typo in layout preparation If a build was canceled halfway-through, this would lead to problems when the project was rebuilt again. --- src/cargo/ops/cargo_rustc/layout.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cargo/ops/cargo_rustc/layout.rs b/src/cargo/ops/cargo_rustc/layout.rs index 2fa1bd024..42bf4a0f8 100644 --- a/src/cargo/ops/cargo_rustc/layout.rs +++ b/src/cargo/ops/cargo_rustc/layout.rs @@ -84,7 +84,7 @@ impl Layout { try!(fs::rmdir_recursive(&self.old_root)); } if self.old_native.exists() { - try!(fs::rmdir_recursive(&self.old_root)); + try!(fs::rmdir_recursive(&self.old_native)); } if self.deps.exists() { try!(fs::rename(&self.deps, &self.old_deps)); -- 2.30.2